package YUtils;

import java.nio.charset.StandardCharsets;
import java.util.Base64;

public abstract class B64 {
    public static String s2b(String s){
        return Base64.getEncoder().encodeToString(s.getBytes(StandardCharsets.UTF_8));
    }
    public static String b2s(String b){
        return new String(Base64.getDecoder().decode(b),StandardCharsets.UTF_8);
    }
}
